package com.example.demo.sys.mapper;

import com.example.demo.sys.dao.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper {

    List<SysRole> getList(@Param("start") Integer start, @Param("pageSize")Integer pageSize, @Param("name")String name);

    Integer getListCount(@Param("name")String name);

    SysRole get(Integer id);

    void add(SysRole sysRole);

    void update(SysRole sysRole);

    void delete(Integer id);

}
